import request from '@/utils/request'

export default {
  //发送短信
  sendCode(email) {
    return request({
      url: `/api/users/sendCode`,
      method: `post`,
      data: {
        email: email
      },
      headers: {
        'Content-Type': 'application/json'
      }
    })
  },
  //注册的方法
  registerUser(formItem) {
    return request({
      url: `/api/users/register`,
      method: `post`,
      data: formItem
    })
  }
}
